package org.aphelie.torg.ruler.internal.core.character;

import org.aphelie.torg.ruler.core.character.ICharacter;
import org.aphelie.torg.ruler.core.character.ICharacterBase;
import org.aphelie.torg.ruler.core.character.ICharacterModel;
import org.eclipse.core.resources.IFile;


public class WorkspaceCharacterModel extends WorkspaceCharacterModelBase implements ICharacterModel {

    private static final long serialVersionUID = 1L;

    public WorkspaceCharacterModel(IFile file, boolean abbreviated) {
        super(file, abbreviated);
    }

    public ICharacterBase createCharacterBase() {
        Character character = new Character(!isEditable());
        character.setModel(this);
        return character;
    }

    public ICharacter getCharacter() {
        return (ICharacter) getCharacterBase();
    }

}
